import Layout from '../views/layout/Layout'

const _import = require('./_import_' + process.env.NODE_ENV);

export default {
  path: '/commercialCollege',
  component: Layout,
  name: 'commercialCollege',
  meta: {title: '商学院管理', icon: 'icon'},
  children: [
    {
      path: 'material',
      component: _import('commercialCollege/material/list'),
      name: 'material',
      meta: {
        title: '素材管理', icon: 'icon',
        buttons: {
          add: { label: '新建', enabled: true },
          batchDelete: { label: '批量删除', enabled: true },
          edit: { label: '编辑', enabled: true },
          delete: { label: '删除', enabled: true },
          top: { label: '置顶/取消置顶', enabled: true }
        }
      },
    },
    {
      path: 'material/add',
      component: _import('commercialCollege/material/edit'),
      name: 'materialAdd',
      meta: {
        title: '新建素材',
      },
      hidden: true
    },
    {
      path: 'material/edit',
      component: _import('commercialCollege/material/edit'),
      name: 'materialEdit',
      meta: {
        title: '编辑素材',
        noCache: true
      },
      hidden: true
    },
    {
      path: 'article',
      component: _import('commercialCollege/article/list'),
      name: 'article',
      meta: {
        title: '文章管理', icon: 'icon',
        buttons: {
          add: { label: '新建', enabled: true },
          edit: { label: '编辑', enabled: true },
          setRecommend: { label: '设为推荐', enabled: true },
          delete: { label: '删除', enabled: true },
          top: { label: '置顶/取消置顶', enabled: true }
        }
      },
    },
    {
      path: 'article/add',
      component: _import('commercialCollege/article/edit'),
      name: 'articleAdd',
      meta: {
        title: '新建文章',
      },
      hidden: true
    },
    {
      path: 'article/edit',
      component: _import('commercialCollege/article/edit'),
      name: 'articleEdit',
      meta: {
        title: '编辑文章',
        noCache: true
      },
      hidden: true
    },
    // {
    //     path: 'materialLibrary',
    //     component: _import('commercialCollege/materialLibrary/list'),
    //     name: 'materialLibrary',
    //     meta: {
    //       title: '素材库管理', icon: 'icon',
    //       buttons: {
    //         add: { label: '上传素材', enabled: true },
    //         edit: { label: '编辑', enabled: true },
    //         delete: { label: '删除', enabled: true }
    //       }
    //     },
    // },
    {
      path: 'materialLibrary/add',
      component: _import('commercialCollege/materialLibrary/edit'),
      name: 'materialLibraryAdd',
      meta: {
        title: '素材库新建',
      },
      hidden: true
    },
    {
      path: 'materialLibrary/edit',
      component: _import('commercialCollege/materialLibrary/edit'),
      name: 'materialLibraryEdit',
      meta: {
        title: '素材库编辑',
        noCache: true
      },
      hidden: true
    },
    {
      path: 'commercialGroup',
      component: _import('commercialCollege/group/list'),
      name: 'commercialGroup',
      meta: {
        title: '分组管理', icon: 'icon',
        buttons: {
          add: { label: '新建', enabled: true },
          edit: { label: '编辑', enabled: true },
          delete: { label: '删除', enabled: true },
          tagAdd: { label: '新建标签', enabled: true },
          tagEdit: { label: '编辑标签', enabled: true },
          tagDelete: { label: '删除标签', enabled: true }
        }
      },
    },
    {
      path: 'audit',
      component: _import('commercialCollege/audit/index'),
      name: 'audit',
      meta: {
        title: '审核管理', icon: 'icon',
        buttons: {
          view: { label: '查看', enabled: true },
          audit: { label: '审核', enabled: true }
        }
      },
    },
    {
      path: 'audit/view',
      component: _import('commercialCollege/audit/edit'),
      name: 'auditView',
      meta: {
        title: '素材查看',
        noCache: true
      },
      hidden: true
    },
    {
      path: 'audit/audit',
      component: _import('commercialCollege/audit/edit'),
      name: 'auditAudit',
      meta: {
        title: '素材审核',
        noCache: true
      },
      hidden: true
    },
    {
      path: 'zhongcao',
      component: _import('commercialCollege/zhongcao/list'),
      name: 'zhongcao',
      meta: {
        title: '种草素材管理', icon: 'icon',
        buttons: {
          add: { label: '新建', enabled: true },
          edit: { label: '编辑', enabled: true },
          delete: { label: '删除', enabled: true },
          isStick: { label: '置顶/取消置顶', enabled: true }
        }
      },
    },
    {
      path: 'zhongcao/add',
      component: _import('commercialCollege/zhongcao/edit'),
      name: 'zhongcaoAdd',
      meta: {
        title: '新建种草素材',
      },
      hidden: true
    },
    {
      path: 'zhongcao/edit',
      component: _import('commercialCollege/zhongcao/edit'),
      name: 'zhongcaoEdit',
      meta: {
        title: '编辑种草素材',
        noCache: true
      },
      hidden: true
    },
  ]
}
